package web.commons;

import domain.cms.CmsPage;
import org.apache.wicket.model.IModel;
import web.cms.CmsMainPage;


public class CmsLink extends LabelBookmarkablePageLink {

    public CmsLink(String id, IModel<CmsPage> page) {
        super(id, CmsMainPage.class, page.getObject().getLinkName());
        setParameter("0", page.getObject().getUrl());
    }

    public CmsLink(String id, CmsPage page) {
        super(id, CmsMainPage.class, page.getLinkName());
        setParameter("0", page.getUrl());
    }


}
